xend: Enlarge the memory balloon size for domain creation since shadow
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 10 Feb 2010 09:07:48 +0000 (09:07 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 10 Feb 2010 09:07:48 +0000 (09:07 +0000)
pre-allocation size has changed from 1M to 4M.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
tools/python/xen/xend/XendDomainInfo.py

index 20de478d1a99766132f5c014f0ace2c2bf1a98d0..577905d459446997f1323f4a1d833726a886b1a7 100644 (file)
@@ -2519,9 +2519,8 @@ class XendDomainInfo:
         # There is an implicit memory overhead for any domain creation. This
         # overhead is greater for some types of domain than others. For
         # example, an x86 HVM domain will have a default shadow-pagetable
-        # allocation of 1MB. We free up 4MB here to be on the safe side.
-        # 2MB memory allocation was not enough in some cases, so it's 4MB now
-        balloon.free(4*1024, self) # 4MB should be plenty
+        # allocation of 4MB. We free up 16MB here to be on the safe side.
+        balloon.free(16*1024, self) # 16MB should be plenty
 
         ssidref = 0
         if security.on() == xsconstants.XS_POLICY_USE: